package com.copc.common.constants;

import com.copc.common.config.Config;

public class RiskConfig {

    public static final String RISK_URL = "riskUrl";

    public static final String RISK_APPID = "riskAppid";

    public static final String RISK_SECRET = "riskSecret";

    public static final String RISK_SCENE = "riskScene";

    public static final String RISK_VERSION = "riskVersion";

    /**
     * 授权接口
     */
    public static final String RISK_TOKEN_URL = "/index/token";

    /**
     * 单被保人接口
     */
    public static final String BIAN_QUE_ONLINE_URL = "/index/bianqueOnline";

    /**
     * 多被保人接口
     */
    public static final String BIAN_QUE_ONLINE_URL_MULTI = "/index/bianqueOnlineMulti";


    public static String getBaseUrl() {
        return Config.getInstance().getValue(RISK_URL);
    }

    public static String getUrl(String reqType) {
        return getBaseUrl() + Config.getInstance().getValue(reqType);
    }


    /**
     * 获取对应的值
     */
    public static String getValue(String key) {
        return Config.getInstance().getValue(key);
    }
}
